package com.twd.allcomponent.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),

    //登录模块
    LOGIN_ERROR(500210,"用户名或密码错误"),
    MOBILE_ERROR(500211,"手机号码个格式不对"),
    BIND_ERROR(200212,"校验异常"),
    MOBILE_NOT_EXIST(200213,"手机不存在"),
    UPDATE_FAIL(200214,"更新失败"),
    SESSIN_ERROR(200215,"用户没登陆"),
    REQUEST_ILLEGAL(200216,"请求异常"),
    ERROR_CAPTCHA(200217,"验证码错误请重新输入！"),
    //秒杀模块
    EMPTY_STOCK(500500,"库存不足"),
    PEPEATE_ERROR(500501,"该商品没人限购一个"),
    ORDER_NOT_EXIST(500502,"订单不存在"),
    ACCESS_LIMIT(500503,"访问过于频繁");
    private final Integer code;
    private  final String message;




}
